fastLn

inline fun fastLn(normalizedAr: Float): Float

EN Fast natural-logarithm via binary-search lookup table, falling back to the intrinsic ln().

Because the result is stored in remember(), this function is called at most once per configuration change per composable. The lookup pays for itself on devices that trigger many simultaneous recompositions (e.g. orientation flip with a large Lazy list).

PT Logaritmo natural rápido via tabela de busca binária, com fallback para ln() intrínseco.

Return

natural log of normalizedAr

Parameters

normalizedAr

currentAr / 1.78f — the normalized aspect ratio